/*
 * @Author: ailin
 * @Date: 2022-12-09 14:17:09
 * @LastEditors: ailin
 * @LastEditTime: 2023-07-20 11:01:49
 * @Description: file content
 * @FilePath: /pay_platform/src/assets/js/api/main.js
 * params--参数
 * callback--自定义callback名
 */

import jsonp from "@/request/jsonp.js"
import { request } from "@/request/request"
const VITE_APP_BASE_API = import.meta.env.VITE_APP_HOST

// [今日经营状况] 数据
// export const getSalesData = (params = "", val = "", callback = "") => {
//   return jsonp(`${VITE_APP_BASE_API}/wmsWeb3/performanceMonitoring/getSalesData.htm`, params, val, callback)
// }
export const getSalesData = (data) => {
  return request.post({
    api: `${VITE_APP_BASE_API}/wmsWeb3/performanceMonitoring/getSalesData.htm`,
    data
  })
}
